/**
 * Demo.java is created by Zachariah at 2012-2-2 下午05:49:40
 */
package com.zack.designPattern.proxy.staticproxy;

import java.lang.reflect.Proxy;

/**
 * @author zachariah zzcfrog@gmail.com
 *
 */
public class Demo {

	/**
	 *
	 * @author zachariah
	 * @param args
	 */
	public static void main(String[] args) {
		Speaker speaker1 = new HelloSpeakerProxy("john");
		Speaker speaker2 = new HelloSpeakerProxy("tom");
		speaker1.say("i'm john");
		speaker2.say("i'm tom");

	}

}
